{extend name="default/base/base_seller" /}
{block name="seller_main"}
<div class="alert alert-info alert-block">
    <div class="faq-img"></div>
    <h4>{$Think.lang.ds_explain}：</h4>
    <ul>
        <li>{$Think.lang.goods_redpacket_mes}</li>
    </ul>
</div>

<input type="hidden" name="goods_id" value="{$goods_info.goods_id}"/>

<div class="dssc-form-goods-gift" data-gid="{$goods_info.goods_id}">
    <div class="goods-pic"><span><img src="{:goods_thumb($goods_info, 240)}"/></span></div>
    <div class="goods-summary">
        <h2>{$goods_info.goods_name}<em>{$Think.lang.goods_redpacket_goods_sku}：{$goods_info.goods_id}</em></h2>
        <dl>
            <dt>{$Think.lang.store_goods_index_store_price}：</dt>
            <dd>￥{$goods_info.goods_price}</dd>
        </dl>
        <dl>
            <dt>{$Think.lang.inventory_space}：</dt>
            <dd>{$goods_info.goods_storage}</dd>
        </dl>
        <dl>
            <dt>{$Think.lang.goods_redpacket}：</dt>
            {notempty name="redpacket"}
            {foreach name="redpacket" item="value" }
            <dd>￥{$value.red_amount}
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                <a href="{:url('Sellergoodsonline/setredpacketstate',['state'=>0,'red_id'=>$value.id,'goods_id'=>$value.goods_id])}"
                   class="dssc-btn dssc-btn-red">{$Think.lang.goods_redpacket_no_use}</a></dd>

            </dd>
            {/foreach}
            {else}
            <dd>
                {$Think.lang.goods_redpacket_nothing}
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                <a href="javascript:void(0)" class="dssc-btn dssc-btn-green" ds_type="dialog"
                   dialog_title="{$Think.lang.goods_redpacket_add}" dialog_id="" dialog_width="600"
                   uri="{:url('Sellergoodsonline/add_redpacket',['goods_id'=>$goods_info.goods_id,'commonid'=>$goods_info.goods_commonid])}">{$Think.lang.goods_redpacket_add}</a>

            </dd>
            {/notempty}
        </dl>
    </div>

</div>


{/block}
